package com.alioth;

import java.io.FileReader;
import java.io.IOException;

/**
 * @Author tsj
 * @Date 2023/11/21/16:22
 */
public class ReturnAddressTest {


    public void method2(){
        try {
            method1();
        }catch (IOException e){
            e.printStackTrace();
        }
    }
    public void method1() throws IOException {
        FileReader fileReader = new FileReader("./returnAddress.txt");
        char[] cBuffer = new char[1024];
        int len;
        while ((len = fileReader.read(cBuffer))!= -1){
            String s = new String(cBuffer, 0, len);
            System.out.println(s);
        }
        fileReader.close();
    }
}
